Skip to main content

State


Overview

This document describes the states used by the icacontrol module.

RegisteredZone

RegisteredZone stores metadata for the relative chain associated with the Supernova chain.

The metadata includes the relative chain's denom, validator address, connection information, and so on.

message RegisteredZone {
string zone_id = 1;
IcaConnectionInfo ica_connection_info = 2;
IcaAccount ica_account = 3;
TransferConnectionInfo transfer_info = 4;
string validator_address = 5;
string base_denom = 6;
string sn_denom = 7;
int64 decimal = 8;
int64 undelegate_max_entries = 9;
int64 deposit_max_entries = 10;
}

IcaAccount

IcaAccount stores information about the account you use to connect to the relative chain and ICA.

message IcaAccount {
string controller_address = 1;
string host_address = 2;
}

IcaConnectionInfo

IcaConnectionInfo stores connection information for ICA connections.

Connection information includes connection-id and port-id.

message IcaConnectionInfo {
string connection_id = 1;
string port_id = 2;
}

TransferConnectionInfo

TransferConnectionInfo stores connection information for using IBC Transfer.

Connection information includes channel_id and port_id.

message TransferConnectionInfo {
string channel_id = 1;
string port_id = 2;
}

ControllerAddressInfo

ControllerAddressInfo stores the controller account to create an ICA account.

Controller information includes zone_id and controller address.

message ControllerAddressInfo {
string zone_id = 1;
repeated string controller_address = 2;
}